{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<html lang="zh-cmn-Hans">
<head>
	<meta charset="UTF-8">
	<link rel="shortcut icon" href="favicon.ico">
	<link rel="stylesheet" href="{% static 'css/iconfont.css' %}">
	<link rel="stylesheet" href="{% static 'css/global.css' %}">
	<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
	<link rel="stylesheet" href="{% static 'css/bootstrap-theme.min.css' %}">
	<link rel="stylesheet" href="{% static 'css/swiper.min.css' %}">
	<link rel="stylesheet" href="{% static 'css/styles.css' %}">
	<script src="{% static 'js/jquery.1.12.4.min.js' %}" charset="UTF-8"></script>
	<script src="{% static 'js/bootstrap.min.js' %}" charset="UTF-8"></script>
	<script src="{% static 'js/swiper.min.js' %}" charset="UTF-8"></script>
	<script src="{% static 'js/global.js' %}" charset="UTF-8"></script>
	<script src="{% static 'js/jquery.DJMask.2.1.1.js' %}" charset="UTF-8"></script>
	<title>X袋网</title>
</head>
<body>
	<!-- 顶部tab -->
	<div class="tab-header">
		<div class="inner">
			<div class="pull-left">
				<div class="pull-left">嗨，欢迎来到<span class="cr">X袋网</span></div>
				<a href="agent_level.html">网店代销</a>
				<a href="temp_article/udai_article4.html">帮助中心</a>
			</div>
			<div class="pull-right">
                {% if username %}
                    <a href=""><span class="cr">{{ username }}</span></a>
                {% else %}
                    <a href="{% url 'login_register:login' %}"><span class="cr">登录</span></a>
                {% endif %}

				<a href="">注册</a>
				<a href="{% url 'account_info:udai_welcome' %}">我的X袋</a>
				<a href="{% url 'order_from:udai_order' %}">我的订单</a>
				<a href="{% url 'account_info:udai_integral' %}">积分平台</a>
			</div>
		</div>
	</div>
	<!-- 搜索栏 -->
	<div class="top-search">
		<div class="inner">
			<a class="logo" href="{% url 'home_page:index' %}"><img src="{% static 'images/icons/logo.jpg' %}" alt="X袋网" class="cover"></a>
			<div class="search-box">
				<form class="input-group">
					<form class="input-group" method="get" action="search">
					<input placeholder="Ta们都在搜X袋网" type="text" name="q">
					<span class="input-group-btn">
						<button type="submit">
							<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
						</button>
					</span>
				</form>
				</form>
				<p class="help-block text-nowrap">
					{% for foo in keword %}
                        <a href="">{{ foo.word_name }}</a>
                    {% endfor %}
				</p>
			</div>
			<div class="cart-box">
				<a href="udai_shopcart.html" class="cart-but">
					<i class="iconfont icon-shopcart cr fz16"></i> 购物车 {{ cart_num }} 件
				</a>
			</div>
		</div>
	</div>
	<!-- 内页导航栏 -->
	<div class="top-nav bg3">
		<div class="nav-box inner">
			<div class="all-cat">
				<div class="title"><i class="iconfont icon-menu"></i> 全部分类</div>
			</div>
			<ul class="nva-list">
				<a href="{% url 'home_page:index' %}"><li>首页</li></a>
				<a href="{% url 'home_page:company_profile' %}"><li>企业简介</li></a>
				<a href="{% url 'home_page:green_hand' %}"><li>新手上路</li></a>
				<a href="{% url 'home_page:class_room' %}"><li>X袋学堂</li></a>
				<a href="{% url 'home_page:enterprise_id' %}"><li>企业账号</li></a>
				<a href="{% url 'home_page:udai_contract' %}"><li>诚信合约</li></a>
				<a href="{% url 'home_page:item_remove' %}"><li>实时下架</li></a>
			</ul>
		</div>
	</div>
{% block content %}
{% endblock %}
</body>
</html>